package com.crm.vo;

import cn.hutool.core.util.ObjectUtil;
import com.crm.entity.CrmClue;
import com.crm.entity.CrmUser;
import com.crm.util.UUIDUtils;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author junxian.dou
 * @Package：com.crm.vo
 * @Project：springboot-crm
 * @name：Clue
 * @Date：2024/12/30 14:08
 * @Filename：Clue
 * @verson 1.0.0
 * @desc
 */
@Getter
@Setter
public class Clue implements Serializable {

    private static final long serialVersionUID = 8233498268736754187L;

    private String id;


    private String fullname;


    private String appellation;


    private String owner;


    private String company;


    private String job;


    private String email;


    private String phone;


    private String website;


    private String mphone;


    private String state;


    private String source;


    private String createBy;


    private String createTime;


    private String editBy;


    private String editTime;


    private String description;


    private String contactSummary;


    private String nextContactTime;


    private String address;

    public CrmClue createCrmClue() {
        CrmClue crmClue = new CrmClue();
        crmClue.setId(ObjectUtil.isEmpty(getId()) ? UUIDUtils.getUUID() : getId());
        crmClue.setFullname(getFullname());
        crmClue.setAppellation(getAppellation());
        crmClue.setOwner(getOwner());
        crmClue.setCompany(getCompany());
        crmClue.setJob(getJob());
        crmClue.setEmail(getEmail());
        crmClue.setPhone(getPhone());
        crmClue.setWebsite(getWebsite());
        crmClue.setMphone(getMphone());
        crmClue.setSource(getSource());
        crmClue.setState(getState());
        crmClue.setDescription(getDescription());
        crmClue.setContactSummary(getContactSummary());
        crmClue.setNextContactTime(getNextContactTime());
        crmClue.setAddress(getAddress());

        return crmClue;
    }
}
